package com.xthink.common.pojo.user;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("password")
    private String password;


    /*
     * 联系邮箱
     * */
    @TableField("email")
    private String email;


    /*
     * 所在城市
     * */
    @TableField("city")
    private String city;

    /*
    * 企业名称
    * */
    @TableField("business_name")
    private String businessName;

    /*
    * 企业主营设备
    * */
    @TableField("equipment")
    private String equipment;

    /*
    * 期待的服务平台
    * */
    @TableField("service_desk")
    private String serviceDesk;


    /*
    * 平台协议，0表示未阅读，1表示已阅读
    * */
    @TableField("platform_agreement")
    private int platformAgreement;

    /*
    * 当前佣金
    * */
    @TableField("commission")
    private int commission;

    /*
    * 昨日新增
    * */
    @TableField("new_yesterday")
    private int newYesterday;

    /*
    * 分配卡数
    * */
    @TableField("distribution_cards")
    private int distributionCards;

    /*
    * 三级成员数
    * */
    @TableField("third_level")
    private int thirdLevel;

    /*
    * 审核状态
    * */
    @TableField(value = "audit_status")
    private int auditStatus;

    /*
    * 账号状态
    * */
    @TableField("account_status")
    private int accountStatus;

    /*
    * 备注
    * */
    @TableField("remarks")
    private String remarks;

    /*
    * 最后登录时间
    * */
    @TableField("last_time")
    private Date lastTime;

    /*
    * 用户类型
    * */
    @TableField("type")
    private Integer type;

    /*
     * 注册时间,字段自动填充内容
     * */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /*
    * 更新时间，字段自动填充内容
    * */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
